public class MobImage implements Runnable {

    public static int czas;

    public MobImage() {
        Thread mobImage = new Thread(this);
        mobImage.start();
        
    }
    
    public void run() {
        while (true) {
            try {
            	Mob.mobDolImg = Value.mobWdol1;
            	Mob.mobGoraImg = Value.mobWgore1;
            	Mob.mobPrawoImg = Value.mobWprawo1;
            	Mob.mobLewoImg = Value.mobWlewo1;            	
            	Thread.sleep(100);    
            	
            	Mob.mobDolImg = Value.mobWdol2;
            	Mob.mobGoraImg = Value.mobWgore2;
            	Mob.mobPrawoImg = Value.mobWprawo2;
            	Mob.mobLewoImg = Value.mobWlewo2;   
            	Thread.sleep(100);          	

            } catch (InterruptedException e) {
                System.out.println(e);
            }
            
        }
        
    }
}